package com.xds.springcloud.service;

import com.xds.springcloud.entity.CommonResult;
import com.xds.springcloud.entity.Payment;
import org.springframework.stereotype.Component;

/**
 * @Author Bai Xu
 * @Date 2021/10/10 15:29
 * @Version 1.0
 */
@Component
public class PaymentFallbackService implements PaymentService {
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(44444, "服务降级返回,---PaymentFallbackService", new Payment(id, "errorSerial"));
    }
}